$(document).ready(function() {
$('#lang li[class='+$.cookie('lang')+']').addClass('hover');
$('#lang li[class]').click(function(){
var lang = $(this).attr('class');
if (lang != $.cookie('lang')) {
$.cookie('lang', lang, { expires: 30, path: '/'});
location.reload(true);
};
});
});